# -*- coding:utf-8 -*-
import os, sys
from datetime import datetime, timedelta
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir))
from DataSupport.BasicDataSupport import BasicDataSupport
from CommonLib.mylog import mylog


'''
作者：supeanut
创建时间：2016-12-12 22:16
功能描述：
	datayes的个股上退市，交易日历数据保存到本地csv
相关配置：
	supeanut_config.xxx
历史改动：
	2016-12-13
'''
class BasicDataJob:
	def __init__(self):
		pass	

	def process(self, ):
		log = mylog('BasicDataJob.process', None)
		obj = BasicDataSupport()
		flag, msg = obj.stock_info_support(method='csv')
		print flag, msg
		if flag is False:
			log.error(msg)
		flag, msg = obj.trade_calendar_support(method='csv')
		if flag is False:
			log.error(msg)
		print flag, msg

if __name__ == '__main__':
	obj = BasicDataJob()
	obj.process()
